import requests
import json
import pandas as pd
key = "99b6fd576c6cb06dc071b44d30935237"

def geocode(key,address,city=None,batch=None,sig=None,output=json,callback=None):
    """获取高德API的地理编码"""
    url = "https://restapi.amap.com/v3/geocode/geo?parameters"
    key = "99b6fd576c6cb06dc071b44d30935237"
    params = {
    "key":key,
    "address":address,
    "city":city,
    "batch":batch,
    "output":json
}

    r = requests.get(url,params=params)
    results = r.json()
    return results